<?php
namespace app\index\controller;

use think\Controller;

class Message extends Controller
{
    /**
     * 发送短信
     */
    public function sendMessage(){

    }

    /**
     * 随机四位验证码
     */
     public function ranum($length = 4){
            return str_pad(mt_rand(0, pow(10, $length) - 1), $length, '0', STR_PAD_LEFT);
     }

}
